package com.ddxz.demo.liquibase.entity;

import com.ddxz.tool.core.common.CommonUtil;
import com.ddxz.tool.core.convert.DateUtil;

/**
 * class description
 *
 * @author 朱宗刚
 * @version 1.0.0
 * @date 2020/12/18
 */

public class UserEntity {
    private String id = CommonUtil.generatorId("t_user");
    private String name;
    private String password;
    private String nickname;
    private String phone;
    private String email;
    private String deptId;
    private String postId;
    private String avatar = "";
    private String nation = "中华人民共和国";
    private String political = "群众";
    private String national = "汉";
    private String createUser = "";
    private Long birthday = 0L;
    private Long createTime = DateUtil.getCurrentTime();
    private Long modifyTime = DateUtil.getCurrentTime();
    private Short gender = 1;
    private Short reset = 1;
    private Short status = 1;

    public UserEntity(String name, String password, String deptId, String postId) {
        this.name = name;
        this.password = password;
        this.deptId = deptId;
        this.postId = postId;
        this.nickname = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getPostId() {
        return postId;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getPolitical() {
        return political;
    }

    public void setPolitical(String political) {
        this.political = political;
    }

    public String getNational() {
        return national;
    }

    public void setNational(String national) {
        this.national = national;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Long getBirthday() {
        return birthday;
    }

    public void setBirthday(Long birthday) {
        this.birthday = birthday;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Short getGender() {
        return gender;
    }

    public void setGender(Short gender) {
        this.gender = gender;
    }

    public Short getReset() {
        return reset;
    }

    public void setReset(Short reset) {
        this.reset = reset;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }
}
